import React from 'react';
import ReactDOM from 'react-dom';
import './index.css'
import './icon/iconfont.css'

//引入路由
import { HashRouter } from 'react-router-dom'
import config from './router/router'
import RouterView from './router/RouterView'


//挂载到原型链
// React.Component.prototype.Toast=Toast
ReactDOM.render(
    <HashRouter>
        <RouterView routes={config.routes}/>
    </HashRouter>
, document.getElementById('root'));